/**
 * 此处可直接引用自己项目封装好的 axios 配合后端联调
 */

import request from '@/api/index.js' // 调用项目封装的axios
import request2 from '@/api/index2.js' // 调用项目封装的axios

// 获取验证图片  以及token
export function reqGet(data) {
    return  request({
        url: '/captcha/get',
        method: 'post',
        data
    })
}

// 滑动或者点选验证
export function reqCheck(data) {
    return  request({
        url: '/captcha/check',
        method: 'post',
        data
    })
}

// 上传文件
export function upload(params, query) {
  return request2({
    url: '/Work/WorkFileUploadStream',
    // url: '/DataCenterPro/YuanHe/Work/WorkFileUploadStream',
    method: 'post',
    data: params,
    params: query
  })
}